package com.demo.dao;

import com.demo.entity.Student;

import java.util.List;

/**
 * @author wzm
 * @create 2023-06-29 9:12
 */
public interface StudentDao {
    /**
     * 增加学生
     * @param student
     * @return
     */
    int insertStu(Student student);

    /**
     * 删除学生
     * @param student
     * @return
     */
    int deleteStu(Student student);

    /**
     * 修改学生
     * @param student
     * @return
     */
    int updateStu(Student student);

    //查询全部
    List<Student> selectAll();

    //查询单个
    Student selectById(Student student);

    /**
     * 模糊查询
     * @param student
     * @return
     */
    List<Student> selectByLike(Student student);


}
